package com.fastCms.business.bim.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 设备组
 * </p>
 *
 * @author liusq
 * @since 2021-07-14
 */
@ApiModel(value = "DeviceGroupAndDevicesVO", description = "设备组")
@Data
public class DeviceGroupAndDevicesVO {

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "组名称")
    private String groupName;

    @ApiModelProperty(value = "视频广场:VIDEO")
    private String groupType;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "组内视频列表")
    private List<DeviceInfoVO> deviceList;

}
